package com.evenmo.service.impl;

import com.evenmo.mapper.ClazzMapper;
import com.evenmo.pojo.Clazz;
import com.evenmo.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * This is Description
 *
 * @author moyongjun
 * @date 2019/12/06
 */
@Service("clazzService")
public class ClazzServiceImpl implements ClazzService {

    @Resource
    ClazzMapper clazzMapper;

    @Override
    public Clazz queryById(Integer id) {
        return clazzMapper.queryById(id);
    }

    @Override
    public List<Clazz> queryAll() {
        return clazzMapper.queryAll();
    }
}
